#######################################################
# START - Setup parameters 
#   The following parameters need to be modified to suit
#   your cluster needs
#######################################################

#######################################################
# Passwords
#   These are all of your system 
#   passwords. Make sure to keep them safe!!
PWD_BOOTLOADER = 'atlas'
PWD_ROOT = 'atlas'
PWD_LDAP_ROOT = '{SSHA}Rq03UQ2HtDnqozwigoXEESAaqMaXq5cr'
PWD_CONDOR = 'abcdefg'


#######################################################
# Timezone 
#   Hardware clock will be set to UTC to work around 
#   some VM timing issues
TIMEZONE= 'America/Los_Angelees'


#######################################################
# Linux Distribution URL
#   URL of the linux installation
LINUX_INSTALL_URL = 'http://ftp.scientificlinux.org/linux/scientific/55/x86_64/'

#######################################################
# Networking
#######################################################


# These are the parameters describing your private network
PRIVATE_SUBNET_PREFIX = '192.168.100'
PRIVATE_NETWORKING = {"privateSubnetPrefix":PRIVATE_SUBNET_PREFIX,"privateNetmask":"255.255.255.0",
        "nfsIpSuffix":"1","headIpSuffix":"2","ldapIpSuffix":"3","proxyIpSuffix":"4",
        "intIpSuffix":"30","workerIpSuffix":"60"}

# Public network parameters   
DOMAIN_NAME = 'my.domain'


#######################################################
# Node configurations 

# The number of workers you have in your cluser
NUM_WORKERS=10 

#######################################################
# NFS Node
#   This is both the NFS and puppet server
NFS = {'role':"NFS", 
       'hostname':"at3-nfs.%s" % DOMAIN_NAME,
       'publicip':"192.168.0.201",
       'netmask':"255.255.255.0",
       'gateway':"192.168.0.1",
       'dns':"192.168.0.1",
       'overwrite':True}


#######################################################
# HEAD Node
#   This is the head node for all of the workers
HEAD = {'role':"HEAD", 
        'hostname':"at3-head.%s" % DOMAIN_NAME,
        'publicip':"192.168.0.202",
        'netmask':"255.255.255.0",
        'overwrite':True}
LDAP_HOSTNAME = "at3-ldap.%s" % DOMAIN_NAME
PROXY_HOSTNAME = "at3-proxy" 


#######################################################
# Interative Nodes
#    These are all of your interactive nodes. Add as 
#    many to INT_NODES that you need.
INT1 = {'hostname':"at3-int1.%s" % DOMAIN_NAME,
        'publicip':"192.168.0.203",
        'netmask':"255.255.255.0"}
INT2 = {'hostname':"at3-int2.%s" % DOMAIN_NAME,
        'publicip':"192.168.0.203",
        'netmask':"255.255.255.0"}
INT_NODES = [INT1,INT2]

 
#######################################################
# PROXY
PXY_CACHE_SIZE = '512'
PXY_EMAIL = 'me@my.domain'
PXY_CACHE_MEM = '1024'


############################
# END - Setup parameters
############################

CONFIG_PARAMETERS ={
        "pwdBootloader":PWD_BOOTLOADER,
        "pwdRoot":PWD_ROOT,
        "pwdLdapRoot":PWD_LDAP_ROOT,
        "pwdCondor":PWD_CONDOR,
        "timeZone":TIMEZONE,
        "linuxInstallUrl":LINUX_INSTALL_URL,
        "privateSubnet":PRIVATE_SUBNET_PREFIX,
        "domainName":DOMAIN_NAME,
        "numWorkers":NUM_WORKERS,
        "nfs":NFS, "head":HEAD,
        "interactive":INT_NODES,
        "pxyCacheSize":PXY_CACHE_SIZE,
        "pxyEmail":PXY_EMAIL,
        "pxyCacheMem":PXY_CACHE_MEM}
